import request from '../utils/request';

export const createMessage = query => {
    return request({
        url: 'message/createMessage',
        method: 'post',
        params: query
    });
};

export const getMessage = query => {
    return request({
        url: 'message/getMessage',
        method: 'get',
        params: query
    });
};

export const updateMessage = query => {
    return request({
        url: 'message/updateMessage',
        method: 'post',
        params: query
    });
};

export const delMessage = query => {
    return request({
        url: 'message/delMessage',
        method: 'post',
        params: query
    });
};